package com.xingzuo.library_login.ui.fragment;

import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;

import com.xingzuo.base.ui.mvp.base.ui.BaseMvpFragment;
import com.xingzuo.common.event.LoginEventBean;
import com.xingzuo.library_login.R;
import com.xingzuo.library_login.R2;
import com.xingzuo.library_login.contract.WechatLoginContract;
import com.xingzuo.library_login.presenter.WechatLoginPresenter;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;
import butterknife.OnClick;

public class LoginWechatFragment extends BaseMvpFragment<WechatLoginPresenter> implements WechatLoginContract.View {
    @BindView(R2.id.btn_wechat_login)
    Button btnWechatLogin;
    @BindView(R2.id.tv_regist_or_login)
    TextView tvRegistOrLogin;
    @BindView(R2.id.cb_agree)
    CheckBox cbAgree;
    @BindView(R2.id.tv_user_service)
    TextView tvUserService;
    @BindView(R2.id.tv_yinsi)
    TextView tvYinsi;

    @Override
    public WechatLoginPresenter getPresenter() {
        return new WechatLoginPresenter();
    }

    @Override
    public int getViewId() {
        return R.layout.fragment_wechat_login;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @OnClick({R2.id.btn_wechat_login, R2.id.tv_regist_or_login, R2.id.tv_user_service, R2.id.tv_yinsi})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.btn_wechat_login) {

        } else if (id == R.id.tv_regist_or_login) {
            EventBus.getDefault().post(new LoginEventBean(0));
        } else if (id == R.id.tv_user_service) {

        } else if (id == R.id.tv_yinsi) {

        }
    }
}
